public class text3 {
    //递归求 N 的阶乘
    public static int func(int n) {
        if (n == 1) {
            return 1;
        }
        return n * (n - 1);
    }

    public static void main(String[] args) {
        System.out.println(func(3));
    }
}
